$(function () {
    init_popover();
    init_LeftNav();
});

function init_popover() {
    $('[data-rel=popover]').popover({container: 'body'});
}
function pagination(total,records,newPage) {
    $('#pagination').smartpaginator(
        {
            totalrecords: parseInt(total),
            recordsperpage: records,
            length: 4,
            next: '下一页',
            prev: '前一页',
            first: '首页',
            last: '尾页',
            initval:newPage,
            theme: 'myColor',
            controlsalways: false,
            onchange: function (newPage) {
                init('10',newPage)

            }
        });
}

function init_LeftNav() {
    var debug = true;      //管理员身份进入
    if(debug){
        $('#map_setNav').show();
        $('#map_fastLabelNav').show();
        $('#map_pageLabelNav').show();
        $('#map_pointNav').show();
        $('#point_feedbackNav').show();
        $('#map_testToolNav').show();

        $('#map_feedbackNav').hide();
    }
    else{
        $('#map_feedbackNav').show();    //用户身份登入
    }
}
